From 3b5b5b2c2bbef9f5a4907e498ced4334d27181b7 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 7 Jan 2003 05:31:05 +0000 Subject: [PATCH] Tidy return value of rtrim. From Fouts. --- defs.h | 2 +- util.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/defs.h b/defs.h index b0aa68ec7..264ad482f 100644 --- a/defs.h +++ b/defs.h @@ -211,7 +211,7 @@ void printposn(const coord *c, int is_lat); void *xcalloc(size_t nmemb, size_t size); void *xmalloc(size_t size); char *xstrdup(const char *s); -void *rtrim(char *s); +void rtrim(char *s); /* * PalmOS records like fixed-point numbers, which should be rounded diff --git a/util.c b/util.c index 83c3d65e8..c74a6084a 100644 --- a/util.c +++ b/util.c @@ -60,11 +60,9 @@ xstrdup(const char *s) return o; } -void * +void rtrim(char *s) { - char *p; - while (*s) { s++; } @@ -74,7 +72,6 @@ rtrim(char *s) *s = 0; s--; } - } -- 2.30.2